package com.fund.product.pojo.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fund.common.enums.ProductType;
import com.fund.common.enums.RiskLevel;
import com.fund.common.enums.TradeStatus;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@TableName("product")
@Data
public class Product {
    @TableId
    private Long id;
    private String name;
    //产品类型
    private ProductType type;
    //产品代码
    private String code;
    //注册公司名称
    private String company;
    //成立日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inceptionDate;
    //最新净值
    private BigDecimal latestWorth;
    //注册资产
    private BigDecimal totalAssets;
    //风险等级
    private RiskLevel riskLevel;
    //交易状态
    private TradeStatus status;
    //数据库条目创建时间
    private LocalDateTime createTime;
    //更新时间
    private LocalDateTime updateTime;
    //创建用户id
    private Long createUser;
    //更新用户id
    private Long updateUser;
    //描述
    private String description;
}
